package com.lc.pianostudent;

import com.zcx.helper.app.AppApplication;
import com.zcx.helper.app.AppPreferences;

/**
 * Created by Administrator on 2016/3/14.
 */
public class BasePreferences extends AppPreferences {

    public BasePreferences(AppApplication context, String name) {

        super(name);

    }

    public void saveIsGuide(boolean isGuide) {

        putBoolean("isGuide", isGuide);

    }

    public boolean readIsGuide() {

        return getBoolean("isGuide", false);

    }

    public void saveUID(String UID) {

        putString("UID", UID);

    }

    public String readUID() {

        return getString("UID", "");

    }

    public void savePwd(String pwd) {

        putString("pwd", pwd);

    }

    public String readPwd() {

        return getString("pwd", "");

    }

    //头像
    public void saveHead(String head) {

        putString("head", head);

    }

    public String readHead() {

        return getString("head", "");

    }

    //保存选择城市
    public void saveCityName(String cityName) {

        putString("cityName", cityName);

    }

    public String readCityName() {

        return getString("cityName", "");

    }

    //保存选择城市
    public void saveLocationName(String locationName) {

        putString("locationName", locationName);

    }

    public String readLocationName() {

        return getString("locationName", "");

    }
    //支付密码内容
    public void savePayPwd(String payPwd) {

        putString("payPwd", payPwd);

    }

    public String readPayPwd() {

        return getString("payPwd", "");

    }
    //用户名
    public void saveUserName(String username) {

        putString("username", username);

    }

    public String readUserName() {

        return getString("username", "");

    }

    //性别
    public void saveSex(String sex) {

        putString("sex", sex);

    }

    public String readSex() {

        return getString("sex", "");

    }
    //简介
    public void saveRemark(String remark) {

        putString("remark", remark);

    }

    public String readRemark() {

        return getString("remark", "");

    }
    //银行卡号
    public void saveBankAccount(String account) {

        putString("account", account);

    }

    public String readBankAccount() {

        return getString("account", "");

    }

    public void saveRealName(String realName) {

        putString("realName", realName);

    }

    public String readRealName() {

        return getString("realName", "");

    }
    //身份证号码
    public void saveCert(String cert) {

        putString("cert", cert);

    }

    public String readCert() {

        return getString("cert", "");

    }

    public boolean getIsLogin() {

        return getBoolean("islogin", false);

    }

    public void setIsLogin(boolean isLogin) {

        putBoolean("islogin", isLogin);

    }
    //是否提交过审核
    public boolean getIsReal() {

        return getBoolean("isReal", false);

    }

    public void setIsReal(boolean isReal) {

        putBoolean("isReal", isReal);

    }

    //保存是否有支付密码
    public boolean getHavePayPwd() {

        return getBoolean("HavePayPwd", false);

    }

    public void setHavePayPwd(boolean isHavePayPwd) {

        putBoolean("HavePayPwd", isHavePayPwd);

    }
    //账户余额
    public String readBalance() {

        return getString("balance", "");

    }

    public void saveBalance(String balance) {

        putString("balance", balance);

    }

    public void saveIsPayPass(boolean payPass) {

        putBoolean("payPass", payPass);

    }

    public boolean readIsPayPass() {

        return getBoolean("payPass", false);

    }
    //是否绑定银行卡
    public void saveIsBank(boolean is_bank) {

        putBoolean("is_bank", is_bank);

    }

    public boolean readIsBank() {

        return getBoolean("is_bank", false);

    }
    //摇一摇开关
    public void saveIsYaoyiyao(boolean yaoyiyao) {

        putBoolean("yaoyiyao", yaoyiyao);

    }

    public boolean readIsYaoyiyao() {

        return getBoolean("yaoyiyao", true);

    }

    //摇一摇声音开关
    public void saveIsVoice(boolean voice) {

        putBoolean("voice", voice);

    }

    public boolean readIsVoice() {

        return getBoolean("voice", true);

    }


    //摇一摇开关
    public void saveIsPush(boolean push) {

        putBoolean("push", push);

    }

    public boolean readIsPush() {

        return getBoolean("push", true);

    }
    //是否实名
    public void saveIsReal(boolean is_real) {

        putBoolean("is_real", is_real);

    }

    public boolean readIsReal() {

        return getBoolean("is_real", false);

    }

    //隐藏手势密码
    public void saveIsHideGesture(boolean hide) {

        putBoolean("hide", hide);

    }

    public boolean readIsHideGesture() {

        return getBoolean("hide", false);

    }


    //启用touch Id
    public void saveIsTouch(boolean touch) {

        putBoolean("touch", touch);

    }

    public boolean readIsTouch() {

        return getBoolean("touch", true);

    }


    //是否解锁
    public void saveIsJiesuo(boolean jiesuo) {

        putBoolean("jiesuo", jiesuo);

    }

    public boolean readIsJiesuo() {

        return getBoolean("jiesuo", false);

    }

    public void saveIsFirst(boolean first) {

        putBoolean("first", first);

    }

    public boolean readIsFirst() {

        return getBoolean("first", true);

    }

    //是否支付密码
    public String getIsPayPass() {

        return getString("paypass", "");

    }

    public void setIsPayPass(String paypass) {

        putString("paypass", paypass);

    }

    //是否设置图案密码
    public String getIsTuPass() {

        return getString("tupass", "");

    }

    public void setIsTuPass(String tupass) {

        putString("tupass", tupass);

    }


    //是否解锁
    public void saveIsRememer(boolean remember) {

        putBoolean("remember", remember);

    }

    public boolean readIsRememer() {

        return getBoolean("remember", true);

    }

    public String getLoginPass() {

        return getString("login_pass", "");

    }

    public void setLoginPass(String login_pass) {

        putString("login_pass", login_pass);

    }

    public void savePhone(String phone) {

        putString("phone", phone);

    }

    public String readPhone() {

        return getString("phone", "");

    }


    public void saveTeacherId(String teacherid) {

        putString("teacherid", teacherid);

    }

    public String readTeacherId() {

        return getString("teacherid", "");

    }

    public void saveTeacherName(String teacher_name) {

        putString("teacher_name", teacher_name);

    }

    public String readTeacherName() {

        return getString("teacher_name", "");

    }

    //头像
    public void saveHeadImg(String head) {

        putString("head", head);

    }

    public String readHeadImg() {

        return getString("head", "");

    }

    //正确个数
    public void saveCorrect(String correct) {

        putString("correct", correct);

    }

    public String readCorrect() {

        return getString("correct", "");

    }


    //错误个数
    public void saveWrong(String wrong) {

        putString("wrong", wrong);

    }

    public String readWrong() {

        return getString("wrong", "");

    }

    //昵称
    public void saveName(String name) {

        putString("name", name);

    }

    public String readName() {

        return getString("name", "");

    }


    //个性签名
    public void savePerson(String person) {

        putString("person", person);

    }

    public String readPerson() {

        return getString("person", "");

    }

    //本次成绩
    public void saveTotalGrade(String total_grade) {

        putString("total_grade", total_grade);

    }

    public String readTotalGrade() {

        return getString("total_grade", "");

    }

    //本周成绩
    public void saveWeekGrade(String week_grade) {

        putString("week_grade", week_grade);

    }

    public String readWeekGrade() {

        return getString("week_grade", "");

    }

    //客服
    public void saveKefu(String kefu) {

        putString("kefu", kefu);

    }

    public String readKefu() {

        return getString("kefu", "");

    }

    //年级
    public void saveNianji(String nianji) {

        putString("nianji", nianji);

    }

    public String readNianji() {

        return getString("nianji", "");

    }

    //分数
    public void saveFenshu(String fenshu) {

        putString("fenshu", fenshu);

    }

    public String readFenshu() {

        return getString("fenshu", "");

    }

    //等级
    public void saveDegreeType(String degree_type) {

        putString("degree_type", degree_type);

    }

    public String readDegreeType() {

        return getString("degree_type", "");

    }

    //等级
    public void saveChoose(String choose) {

        putString("choose", choose);

    }

    public String readChoose() {

        return getString("choose", "2");
//        2 注册   vip本页  1 已过期充值

    }

}
